#include<iostream>
using namespace std;
#include"tcpClient.hpp"
#include<memory>
#include<string.h>

using namespace Client;


void my_err(char* message){
    printf("%s使用错误，应该加上端口\n",message);
}

int main(int argc,char* argv[]){
    if(argc != 3){
        my_err(argv[0]);
        exit(1);
    }

    uint16_t port  = atoi(argv[1]);
    string ip = argv[2];

    unique_ptr<tcpClient> ret(new tcpClient(port,ip));
    ret->initClient();
    ret->start();








    return 0;
}